package com.yxx.business.mapper;

import java.util.List;

import com.yxx.business.entity.TbSurveyDesignPhaseDo;
import com.yxx.business.entity.TbSurveyDesignPhaseQueryDto;
import com.yxx.common.core.mapper.BaseMapperPlus;

/**
 * 勘察设计阶段Mapper接口
 *
 * @author yxx
 * @date 2025-08-16
 */
public interface TbSurveyDesignPhaseMapper extends BaseMapperPlus<TbSurveyDesignPhaseDo> {

    /**
     * 查询勘察设计阶段列表
     *
     * @param tbSurveyDesignPhaseQueryDto 勘察设计阶段查询实体
     * @return 勘察设计阶段集合
     */
    public List<TbSurveyDesignPhaseDo> selectTbSurveyDesignPhaseList(TbSurveyDesignPhaseQueryDto tbSurveyDesignPhaseQueryDto);

    /**
     * 查询勘察设计阶段
     *
     * @param designId 勘察设计阶段主键
     * @return 勘察设计阶段单个
     */
    public TbSurveyDesignPhaseDo selectTbSurveyDesignPhaseByDesignId(Long designId);

    /**
     * 新增勘察设计阶段
     *
     * @param tbSurveyDesignPhaseDo 勘察设计阶段数据库实体
     * @return 结果
     */
    public int insertTbSurveyDesignPhase(TbSurveyDesignPhaseDo tbSurveyDesignPhaseDo);

    /**
     * 修改勘察设计阶段
     *
     * @param tbSurveyDesignPhaseDo 勘察设计阶段数据库实体
     * @return 结果
     */
    public int updateTbSurveyDesignPhase(TbSurveyDesignPhaseDo tbSurveyDesignPhaseDo);

    /**
     * 删除勘察设计阶段
     *
     * @param designId 勘察设计阶段主键
     * @return 结果
     */
    public int deleteTbSurveyDesignPhaseByDesignId(Long designId);

    /**
     * 批量删除勘察设计阶段
     *
     * @param designIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteTbSurveyDesignPhaseByDesignIds(List<Long> designIds);
}
